Avoid unnecessary array copy before calling .Remap(); new() -> ValueTuple; #191
Conversation
…uple; Pair<> (#48) * Avoid unnecessary array copy before calling .Remap(); new() -> ValueTuple; Pair<> * rename x -> other in .Equals() method * rename to 'other'
|
@SergeiPavlov, I see that ColumnGatherer.GetColumns() changed return type to IEnumerable which forced a lot of places to make .ToList() or ToArray() but in other places. Did it worth it? What scenario overweight these enumerations + possible number of Array.Copy? Please, point me. |
There are a few places whe we need not to call neither I removed |
|
@SergeiPavlov If we had both results would it be better? |
.Equals()methodsSelect(..., params int[])arguments type ->Select(..., IReadOnlyList<int>)to avoid conversions